package com.cr.business.domain;

import com.cr.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cr.common.annotation.Excel;

import javax.validation.constraints.NotBlank;

/**
 * 产品信息对象 tb_product_info
 * 
 * @author tang
 * @date 2025-08-19
 */
public class TbProductInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品ID */
    private String proId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    @NotBlank(message = "产品名称不能为空！")
    private String proName;

    /** 启用状态（0-正常，1-停用） */
    @Excel(name = "启用状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 开具合格证总数量 */
    private Integer quantity;

    /** 创建者类型（0-后台人员，1-用户） */
    private String creatorType;

    /** 删除标志（0-存在，2-删除） */
    private String delFlag;

    public void setProId(String proId) 
    {
        this.proId = proId;
    }

    public String getProId() 
    {
        return proId;
    }

    public void setProName(String proName) 
    {
        this.proName = proName;
    }

    public String getProName() 
    {
        return proName;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setCreatorType(String creatorType) 
    {
        this.creatorType = creatorType;
    }

    public String getCreatorType() 
    {
        return creatorType;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("proId", getProId())
            .append("proName", getProName())
            .append("status", getStatus())
            .append("creatorType", getCreatorType())
            .append("quantity", getQuantity())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
